package com.stylefeng.guns.core.datascope;

import lombok.Getter;
import lombok.Setter;

import java.util.List;

/**
 * 数据范围
 *
 * @author fengshuonan
 * @date 2017-07-23 22:19
 */
@Getter
@Setter
public class DataScope {

    /**
     * 限制范围的字段名称
     */
    private String scopeName = "deptid";

    /**
     * 具体的数据范围
     */
    private List deptIds;

    public DataScope() {
    }

    public DataScope(List deptIds) {
        this.deptIds = deptIds;
    }

    public DataScope(String scopeName, List deptIds) {
        this.scopeName = scopeName;
        this.deptIds = deptIds;
    }

}
